<?php
class PriceSection extends PriceSectionPeer
{
	function PriceSection()
	{
		parent::PriceSectionPeer();
	}
	
	
	public static function getAllPriceSections()
	{
		$database = new Database();
		$query = "SELECT id FROM price_section";
		$result = $database->query($query);
		$ids = $database->fetch_array($result);
		$price_sections = array();
		foreach ($ids as $id) {
			$p = new PriceSection();
			$p->select($id['id']);
			$price_sections[] = $p;
		}
		return $price_sections;
	}
}
?>